package com.joinway.mobile.bean;

import java.util.Date;
import java.util.List;

import org.jsondoc.core.annotation.ApiObject;
import org.jsondoc.core.annotation.ApiObjectField;

import com.joinway.framework.bean.BaseBean;

@ApiObject(name = "Product", description = "贩卖的产品")
public class Product extends BaseBean {

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;

	@ApiObjectField(description = "产品id")
	int id;
	
	@ApiObjectField(description = "产品名称")
	String name;
	
	@ApiObjectField(description = "上架时间")
	Date shelfDate;
	
	@ApiObjectField(description = "总销量")
	int selledCount;
	
	@ApiObjectField(description = "库存")
	int inventoryCount;

	@ApiObjectField(description = "价格")
	double price;
	
	@ApiObjectField(description = "产品属性")
	List<ProductProperty> properties;
	
	@ApiObjectField(description = "产品图片")
	//List<String> photos;
	String photos;
	
	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public Date getShelfDate() {
		return shelfDate;
	}

	public void setShelfDate(Date shelfDate) {
		this.shelfDate = shelfDate;
	}

	public int getSelledCount() {
		return selledCount;
	}

	public void setSelledCount(int selledCount) {
		this.selledCount = selledCount;
	}

	public int getInventoryCount() {
		return inventoryCount;
	}

	public void setInventoryCount(int inventoryCount) {
		this.inventoryCount = inventoryCount;
	}

	public List<ProductProperty> getProperties() {
		return properties;
	}

	public void setProperties(List<ProductProperty> properties) {
		this.properties = properties;
	}

	public double getPrice() {
		return price;
	}

	public void setPrice(double price) {
		this.price = price;
	}

	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public String getPhotos() {
		return photos;
	}

	public void setPhotos(String photos) {
		this.photos = photos;
	}

//	public List<String> getPhotos() {
//		return photos;
//	}
//
//	public void setPhotos(List<String> photos) {
//		this.photos = photos;
//	}
	
}
